<?php
/*
Chương trình: "Quản lý Hóa Đơn và in hóa đơn Trường Thành"
Tác giả: "Lê Phương"
Phiên bản: "1.0"
Tệp tin: "home.php"
*/
define("template", true);
include("includes/config.php");
include("includes/number.inc.php");
$menu = $_REQUEST['menu'];
switch($menu){
	case "manage":	include("manage.php");break;
	case "add":	include("add.php");break;
	case "log":		include("log.php");break;
	case "print":		include("print.php");break;
	case "left":		include("template/left.tpl.php");break;
	case "header":		echo "<div align='center'><font color='orange' size='2'><b>Truong Thanh Printing Control Panel</b></font></div>";break;
	default: echo '<script type="text/javascript">if (self.parent.frames.length != 0) self.parent.location.replace(document.location.href);</script>';
	?>
	<frameset cols="200,*" rows="*" id="mainFrameset">
		<frame src="home.php?menu=left" name="frame_navigation" frameborder="0" noresize />
		<frameset rows="20,*">
			<frame src="home.php?menu=header" frameborder="0" noresize />
			<frame src="home.php?menu=manage" name="frame_content" id="frame_content" frameborder="0" noresize />
		</frameset>
	</frameset>
<?		break;
}
?>
